#ifndef __SPI_H__
#define __SPI_H__

#include <Reg51.h>

//引脚定义
sbit DS1302_IO = P3^4;
sbit SCLK = P3^6;
sbit CE = P3^5;

unsigned char DS1302ReadByte();
void DS1302WriteByte(unsigned char dat);

#endif